/**
 * Generate time : 2012-01-12 15:38:48
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.ce.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCEAccidentRecord table comment : 设备事故记录
 */
public class ZMCEAccidentRecord extends DaoEPBase {

	private String fdKeyId = " "; /* FD_KEY_ID */
	private String fdCode = " "; /* 事故编号 */
	private String fdEquipmentId = " "; /* 对应设备ID */
	private String fdDepartment = " "; /* 设备使用单位 */
	private String fdBeganDatetime = " "; /* 开始时间 */
	private String fdEndDatetime = " "; /* 结束时间 */
	private String fdAddress = " "; /* 事故地点 */
	private String fdDetailAddress = " "; /* 详细地点 */
	private String fdSystemdataId = " "; /* 事故分类ID */
	private String fdAccidentProcess = " "; /* 事故经过 */
	private String fdAccidentReason = " "; /* 事故原因 */
	private String fdAccidentDuty = " "; /* 事故责任 */
	private String fdProcessOpinion = " "; /* 处理意见 */
	private String fdPrevention = " "; /* 防范措施 */
	private String fdRemarks = " "; /* 备注 */
	private String fdRecordPerson = " "; /* 记录员 */
	private String fdRecordDate = " "; /* 记录日期 */

	private String fdEquipmentCode = " "; /* 设备编号 */
	private String fdEquipmentName = " "; /* 设备名称 */
	private String fdSpecifications = " "; /* 设备规格 */
	private String fdModel = " "; /* 设备型号 */
	private String fdEngineering = " "; /* FD_ENGINEERING */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("FD_KEY_ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdCode");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("事故编号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEquipmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("对应设备ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEquipmentCode");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("设备编号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEquipmentName");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("设备名称");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSpecifications");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("设备规格");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdModel");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("设备型号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDepartment");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("设备使用单位");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEngineering");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("FD_ENGINEERING");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdBeganDatetime");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("开始时间");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEndDatetime");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("结束时间");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdAddress");
		eiColumn.setFieldLength(100);
		eiColumn.setDescName("事故地点");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDetailAddress");
		eiColumn.setFieldLength(250);
		eiColumn.setDescName("详细地点");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSystemdataId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("事故分类ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdAccidentProcess");
		eiColumn.setFieldLength(250);
		eiColumn.setDescName("事故经过");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdAccidentReason");
		eiColumn.setFieldLength(250);
		eiColumn.setDescName("事故原因");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdAccidentDuty");
		eiColumn.setFieldLength(250);
		eiColumn.setDescName("事故责任");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProcessOpinion");
		eiColumn.setFieldLength(250);
		eiColumn.setDescName("处理意见");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPrevention");
		eiColumn.setFieldLength(250);
		eiColumn.setDescName("防范措施");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRemarks");
		eiColumn.setFieldLength(250);
		eiColumn.setDescName("备注");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRecordPerson");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("记录员");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRecordDate");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("记录日期");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCEAccidentRecord() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - FD_KEY_ID
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdCode - 事故编号
	 * 
	 * @return the fdCode
	 */
	public String getFdCode() {
		return this.fdCode;
	}

	/**
	 * set the fdCode - 事故编号
	 */
	public void setFdCode(String fdCode) {
		this.fdCode = fdCode;
	}

	/**
	 * get the fdEquipmentId - 对应设备ID
	 * 
	 * @return the fdEquipmentId
	 */
	public String getFdEquipmentId() {
		return this.fdEquipmentId;
	}

	/**
	 * set the fdEquipmentId - 对应设备ID
	 */
	public void setFdEquipmentId(String fdEquipmentId) {
		this.fdEquipmentId = fdEquipmentId;
	}

	/**
	 * get the fdCode - 设备编号
	 * 
	 * @return the fdCode
	 */
	public String getFdEquipmentCode() {
		return this.fdEquipmentCode;
	}

	/**
	 * set the fdCode - 设备编号
	 */
	public void setFdEquipmentCode(String fdEquipmentCode) {
		this.fdEquipmentCode = fdEquipmentCode;
	}

	/**
	 * get the fdName - 设备名称
	 * 
	 * @return the fdName
	 */
	public String getFdEquipmentName() {
		return this.fdEquipmentName;
	}

	/**
	 * set the fdName - 设备名称
	 */
	public void setFdEquipmentName(String fdEquipmentName) {
		this.fdEquipmentName = fdEquipmentName;
	}

	/**
	 * get the fdSpecifications - 设备规格
	 * 
	 * @return the fdSpecifications
	 */
	public String getFdSpecifications() {
		return this.fdSpecifications;
	}

	/**
	 * set the fdSpecifications - 设备规格
	 */
	public void setFdSpecifications(String fdSpecifications) {
		this.fdSpecifications = fdSpecifications;
	}

	/**
	 * get the fdModel - 设备型号
	 * 
	 * @return the fdModel
	 */
	public String getFdModel() {
		return this.fdModel;
	}

	/**
	 * set the fdModel - 设备型号
	 */
	public void setFdModel(String fdModel) {
		this.fdModel = fdModel;
	}

	/**
	 * get the fdDepartment - 设备使用单位
	 * 
	 * @return the fdDepartment
	 */
	public String getFdDepartment() {
		return this.fdDepartment;
	}

	/**
	 * set the fdDepartment - 设备使用单位
	 */
	public void setFdDepartment(String fdDepartment) {
		this.fdDepartment = fdDepartment;
	}

	/**
	 * get the fdEngineering - FD_ENGINEERING
	 * 
	 * @return the fdEngineering
	 */
	public String getFdEngineering() {
		return this.fdEngineering;
	}

	/**
	 * set the fdEngineering - FD_ENGINEERING
	 */
	public void setFdEngineering(String fdEngineering) {
		this.fdEngineering = fdEngineering;
	}

	/**
	 * get the fdBeganDatetime - 开始时间
	 * 
	 * @return the fdBeganDatetime
	 */
	public String getFdBeganDatetime() {
		return this.fdBeganDatetime;
	}

	/**
	 * set the fdBeganDatetime - 开始时间
	 */
	public void setFdBeganDatetime(String fdBeganDatetime) {
		this.fdBeganDatetime = fdBeganDatetime;
	}

	/**
	 * get the fdEndDatetime - 结束时间
	 * 
	 * @return the fdEndDatetime
	 */
	public String getFdEndDatetime() {
		return this.fdEndDatetime;
	}

	/**
	 * set the fdEndDatetime - 结束时间
	 */
	public void setFdEndDatetime(String fdEndDatetime) {
		this.fdEndDatetime = fdEndDatetime;
	}

	/**
	 * get the fdAddress - 事故地点
	 * 
	 * @return the fdAddress
	 */
	public String getFdAddress() {
		return this.fdAddress;
	}

	/**
	 * set the fdAddress - 事故地点
	 */
	public void setFdAddress(String fdAddress) {
		this.fdAddress = fdAddress;
	}

	/**
	 * get the fdDetailAddress - 详细地点
	 * 
	 * @return the fdDetailAddress
	 */
	public String getFdDetailAddress() {
		return this.fdDetailAddress;
	}

	/**
	 * set the fdDetailAddress - 详细地点
	 */
	public void setFdDetailAddress(String fdDetailAddress) {
		this.fdDetailAddress = fdDetailAddress;
	}

	/**
	 * get the fdSystemdataId - 事故分类ID
	 * 
	 * @return the fdSystemdataId
	 */
	public String getFdSystemdataId() {
		return this.fdSystemdataId;
	}

	/**
	 * set the fdSystemdataId - 事故分类ID
	 */
	public void setFdSystemdataId(String fdSystemdataId) {
		this.fdSystemdataId = fdSystemdataId;
	}

	/**
	 * get the fdAccidentProcess - 事故经过
	 * 
	 * @return the fdAccidentProcess
	 */
	public String getFdAccidentProcess() {
		return this.fdAccidentProcess;
	}

	/**
	 * set the fdAccidentProcess - 事故经过
	 */
	public void setFdAccidentProcess(String fdAccidentProcess) {
		this.fdAccidentProcess = fdAccidentProcess;
	}

	/**
	 * get the fdAccidentReason - 事故原因
	 * 
	 * @return the fdAccidentReason
	 */
	public String getFdAccidentReason() {
		return this.fdAccidentReason;
	}

	/**
	 * set the fdAccidentReason - 事故原因
	 */
	public void setFdAccidentReason(String fdAccidentReason) {
		this.fdAccidentReason = fdAccidentReason;
	}

	/**
	 * get the fdAccidentDuty - 事故责任
	 * 
	 * @return the fdAccidentDuty
	 */
	public String getFdAccidentDuty() {
		return this.fdAccidentDuty;
	}

	/**
	 * set the fdAccidentDuty - 事故责任
	 */
	public void setFdAccidentDuty(String fdAccidentDuty) {
		this.fdAccidentDuty = fdAccidentDuty;
	}

	/**
	 * get the fdProcessOpinion - 处理意见
	 * 
	 * @return the fdProcessOpinion
	 */
	public String getFdProcessOpinion() {
		return this.fdProcessOpinion;
	}

	/**
	 * set the fdProcessOpinion - 处理意见
	 */
	public void setFdProcessOpinion(String fdProcessOpinion) {
		this.fdProcessOpinion = fdProcessOpinion;
	}

	/**
	 * get the fdPrevention - 防范措施
	 * 
	 * @return the fdPrevention
	 */
	public String getFdPrevention() {
		return this.fdPrevention;
	}

	/**
	 * set the fdPrevention - 防范措施
	 */
	public void setFdPrevention(String fdPrevention) {
		this.fdPrevention = fdPrevention;
	}

	/**
	 * get the fdRemarks - 备注
	 * 
	 * @return the fdRemarks
	 */
	public String getFdRemarks() {
		return this.fdRemarks;
	}

	/**
	 * set the fdRemarks - 备注
	 */
	public void setFdRemarks(String fdRemarks) {
		this.fdRemarks = fdRemarks;
	}

	/**
	 * get the fdRecordPerson - 记录员
	 * 
	 * @return the fdRecordPerson
	 */
	public String getFdRecordPerson() {
		return this.fdRecordPerson;
	}

	/**
	 * set the fdRecordPerson - 记录员
	 */
	public void setFdRecordPerson(String fdRecordPerson) {
		this.fdRecordPerson = fdRecordPerson;
	}

	/**
	 * get the fdRecordDate - 记录日期
	 * 
	 * @return the fdRecordDate
	 */
	public String getFdRecordDate() {
		return this.fdRecordDate;
	}

	/**
	 * set the fdRecordDate - 记录日期
	 */
	public void setFdRecordDate(String fdRecordDate) {
		this.fdRecordDate = fdRecordDate;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCode")), fdCode));
		setFdEquipmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentId")), fdEquipmentId));
		setFdDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartment")), fdDepartment));
		setFdBeganDatetime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdBeganDatetime")), fdBeganDatetime));
		setFdEndDatetime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEndDatetime")), fdEndDatetime));
		setFdAddress(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdAddress")), fdAddress));
		setFdDetailAddress(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDetailAddress")), fdDetailAddress));
		setFdSystemdataId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSystemdataId")), fdSystemdataId));
		setFdAccidentProcess(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdAccidentProcess")), fdAccidentProcess));
		setFdAccidentReason(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdAccidentReason")), fdAccidentReason));
		setFdAccidentDuty(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdAccidentDuty")), fdAccidentDuty));
		setFdProcessOpinion(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProcessOpinion")), fdProcessOpinion));
		setFdPrevention(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPrevention")), fdPrevention));
		setFdRemarks(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemarks")), fdRemarks));
		setFdRecordPerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRecordPerson")), fdRecordPerson));
		setFdRecordDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRecordDate")), fdRecordDate));

		setFdEquipmentCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentCode")), fdEquipmentCode));
		setFdEquipmentName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentName")), fdEquipmentName));
		setFdSpecifications(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSpecifications")), fdSpecifications));
		setFdModel(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdModel")), fdModel));
		setFdEngineering(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEngineering")), fdEngineering));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdCode", StringUtils.toString(fdCode, eiMetadata.getMeta("fdCode")));
		map.put("fdEquipmentId", StringUtils.toString(fdEquipmentId, eiMetadata.getMeta("fdEquipmentId")));
		map.put("fdDepartment", StringUtils.toString(fdDepartment, eiMetadata.getMeta("fdDepartment")));
		map.put("fdBeganDatetime", StringUtils.toString(fdBeganDatetime, eiMetadata.getMeta("fdBeganDatetime")));
		map.put("fdEndDatetime", StringUtils.toString(fdEndDatetime, eiMetadata.getMeta("fdEndDatetime")));
		map.put("fdAddress", StringUtils.toString(fdAddress, eiMetadata.getMeta("fdAddress")));
		map.put("fdDetailAddress", StringUtils.toString(fdDetailAddress, eiMetadata.getMeta("fdDetailAddress")));
		map.put("fdSystemdataId", StringUtils.toString(fdSystemdataId, eiMetadata.getMeta("fdSystemdataId")));
		map.put("fdAccidentProcess", StringUtils.toString(fdAccidentProcess, eiMetadata.getMeta("fdAccidentProcess")));
		map.put("fdAccidentReason", StringUtils.toString(fdAccidentReason, eiMetadata.getMeta("fdAccidentReason")));
		map.put("fdAccidentDuty", StringUtils.toString(fdAccidentDuty, eiMetadata.getMeta("fdAccidentDuty")));
		map.put("fdProcessOpinion", StringUtils.toString(fdProcessOpinion, eiMetadata.getMeta("fdProcessOpinion")));
		map.put("fdPrevention", StringUtils.toString(fdPrevention, eiMetadata.getMeta("fdPrevention")));
		map.put("fdRemarks", StringUtils.toString(fdRemarks, eiMetadata.getMeta("fdRemarks")));
		map.put("fdRecordPerson", StringUtils.toString(fdRecordPerson, eiMetadata.getMeta("fdRecordPerson")));
		map.put("fdRecordDate", StringUtils.toString(fdRecordDate, eiMetadata.getMeta("fdRecordDate")));

		map.put("fdEquipmentCode", StringUtils.toString(fdEquipmentCode, eiMetadata.getMeta("fdEquipmentCode")));
		map.put("fdEquipmentName", StringUtils.toString(fdEquipmentName, eiMetadata.getMeta("fdEquipmentName")));
		map.put("fdSpecifications", StringUtils.toString(fdSpecifications, eiMetadata.getMeta("fdSpecifications")));
		map.put("fdModel", StringUtils.toString(fdModel, eiMetadata.getMeta("fdModel")));
		map.put("fdEngineering", StringUtils.toString(fdEngineering, eiMetadata.getMeta("fdEngineering")));
		return map;

	}
}